import request from '@/pages/request/request.js'
// 用户登录
export function loginUserApi(data) {
    return request.post("/api/user/login", data)
}
// 首页接口 /api/index/getdata
export function indentGet(data) {
    return request.post("/api/index/getdata", data, {
        needToken: true
    })
}
// 紧急订单
export function urgencyGet(data) {
    return request.post("/api/index/geturgentlist", data, {
        needToken: true
    })
}

// 订单类型页
export function indentTypeGet(data) {
    return request.post("/api/index/getorderlist", data, {
        needToken: true
    })
}
// 订单详情
export function indentDetail(data) {
    return request.post("/api/index/getorderdetail", data, {
        needToken: true
    })
}
// 
export function indentList() {
    return request.post("/api/index/getresultlist")
}
// /api/index/handle
export function indentSubmit(data) {
    return request.post("/api/index/handle", data, {
        needToken: true
    })
}
// /api/index/orderrecord
export function orderrecord(data) {
    return request.post("/api/index/orderrecord", data, {
        needToken: true
    })
}
// 绑定微信
export function wxBindApi(data) {
    return request.post("/api/user/bindwx", data, {
        needToken: true
    })
}
// 获取快递名称
export function expressName(data) {
    return request.post("/api/index/getlogistics", data, {
        needToken: true
    })
}
// /api/index/getconsultationlist
export function consultationApi(data) {
    return request.post("/api/index/getconsultationlist", data, {
        needToken: true
    })
}
// /api/index/getconsultationdetail
export function consultationDetApi(data) {
    return request.post("/api/index/getconsultationdetail", data, {
        needToken: true
    })
}
// /api/index/consultationhandle
export function consultationSubApi(data) {
    return request.post("/api/index/consultationhandle", data, {
        needToken: true
    })
}